#ifndef _rect_h_
#define _rect_h_

#include "point.h"

#include <sdl/sdl.h>

using namespace std;

class Rect {
    private:
        int mW,mH,mX,mY;
    public:
        Rect();
        Rect(int,int,int,int);
        
        void setDimension(int,int,int,int);
        bool pointIn(int,int);
        bool pointIn(Point);
        
        void setX(int x){
            mX = x;
        }
        
        void setY(int y){
            mY = y;
        }
        void setWidth(int w){
            mW = w;
        }
        void setHeight(int h){
            mH = h;
        }
        int getWidth(){
            return mW;
        }
        int getHeight(){
            return mH;
        }
        int getX(){
            return mX;
        }
        int getY(){
            return mY;
        }
        
        SDL_Rect* toSDLRect();       
};

#endif
